<div class="wrapper">
    <div class="mainTitle envelope tMargin-2 left">
        <h2 class="bMargin-1">Dashboard - Leads</h2>
        <h3>Leads controlados em tempo real</h3>
    </div>
    <div class="clear"></div>
    <hr />
    <div class="leadsCtn">
        <div class="title">
            <h4 class="left">Novo lead</h4>
        </div>
        <div class="content ">                    
            <form method="post" action="<?php echo Mapper::url('/lead/adicionar'); ?>"  enctype="multipart/form-data">
                <fieldset>

                    <ul class="form vhh a tMargin-2 bMargin-2 left">
                        <li>
                            <label for="">Nome:</label>
                            <input type="text" name="lead_nome" />
                        </li>
                        <li>
                            <label for="">Email:</label>
                            <input type="text" name="lead_email" size="40" />
                        </li>
                        <li>
                            <label for="">Telefone:</label>
                            <input type="text" name="lead_telefone" />
                        </li>
                        <li>
                            <label for="">Celular:</label>
                            <input type="text" name="lead_celular" />
                        </li>
                        <li>
                            <label for="">Empresa:</label>
                            <input type="text" name="lead_empresa" />
                        </li>
                        <li>
                            <label for="">Endereço:</label>
                            <input type="text" name="lead_endereco" />
                        </li>
                        <li>
                            <label for="">Cidade:</label>
                            <input type="text" name="lead_cidade" />
                        </li>
                        <li>
                            <label for="">Estado:</label>
                            <select name="lead_estado">
                                <option value='-'>-</option>
                                <option value='AC'>AC</option>
                                <option value='AL'>AL</option>
                                <option value='AM'>AM</option>
                                <option value='AP'>AP</option>
                                <option value='BA'>BA</option>
                                <option value='CE'>CE</option>
                                <option value="DF">DF</option>
                                <option value="ES">ES</option>
                                <option value="GO">GO</option>
                                <option value="MA">MA</option>
                                <option value="MG">MG</option>
                                <option value="MS">MS</option>
                                <option value="MT">MT</option>
                                <option value="PA">PA</option>
                                <option value="PB">PB</option>
                                <option value="PE">PE</option>
                                <option value="PI">PI</option>
                                <option value="PR">PR</option>
                                <option value="RJ">RJ</option>
                                <option value="RN">RN</option>
                                <option value="RO">RO</option>
                                <option value="RR">RR</option>
                                <option value="RS">RS</option>
                                <option value="SC">SC</option>
                                <option value="SE">SE</option>
                                <option value="SP">SP</option>
                                <option value="TO">TO</option>
                            </select>
                        </li>
                    </ul>
                    <ul class="form vhh b tMargin-2 bMargin-2 right">
                        <li>
                            <label for="">Receita mensal:</label>
                            <input type="text" name='lead_capital' />
                        </li>
                        <li>
                            <label for="">Sexo:</label>
                            <select name='lead_sexo' size="1">
                                <option value='M'>Masculino</option>
                                <option value='F'>Feminino</option>
                            </select>
                        </li>
                        <li>
                            <label for="">Origem do Lead:</label>
                            <select name="lead_origem" id="select2">
                                <option value="">Nenhum</option>
                                <?php 
                                    foreach($arrOrigem as $objOrigem)
                                    {
                                        $objOrigem = (object) $objOrigem;
                                        echo "<option value='".$objOrigem->orig_id."'  ";
                                        if(isset($objLead->lead_origem))
                                            echo ( ( $objOrigem->orig_id == $objLead->lead_origem ) ? 'selected="selected"' : "");
                                        echo ">".$objOrigem->orig_nome."</option>";
                                    }
                                ?>
                            </select>
                        </li>
                        <li>
                            <label for="">Classificação:</label>
                            <select name="">
                                <option value="">Nenhum</option>
                            </select>
                        </li>
                        <li>
                            <label for="">Valor da venda:</label>
                            <input type="text" name="lead_valor_venda" />
                        </li>
                        <li>
                            <label for="">Formulário:</label>
                            <select name="camp_id" class="campanha" >
                                <!--<option>Escolha a campanha</option>-->
                                <?php
                                foreach($arrCampanha as $objCampanha)
                                {
                                    $objCampanha = (object) $objCampanha;
                                    echo '<option value="'.$objCampanha->camp_id.'">'.$objCampanha->camp_nome.'</option>';
                                }
                                ?>
                            </select>
                        </li>
                    </ul>
                </fieldset>
                <input type="submit" class="botaoCinza right" value="Salvar">
                <div class="clear"></div>
           </form>
        </div><!-- .content -->
    </div><!-- .leads -->
</div><!-- .wraper -->